#ifndef _WX_CURSOR_H_BASE_
#define _WX_CURSOR_H_BASE_

#include "wx/defs.h"
#include "wx/gtk/cursor.h"
#include "wx/utils.h"

class wxBusyCursorSuspender {
  public:
    wxBusyCursorSuspender() {
      if( wxIsBusy() ) {
        wxSetCursor( wxBusyCursor::GetStoredCursor() );
      }
    }
    ~wxBusyCursorSuspender() {
      if( wxIsBusy() ) {
        wxSetCursor( wxBusyCursor::GetBusyCursor() );
      }
    }
};

#endif
